import React from 'react';
import { createRoot } from 'react-dom/client'
import { Provider } from 'react-redux'
import store from './MyRtk/store';
import App from './App'
// import ReduxIndex from './redux'

import './styles/index.scss';
// import 'animate.css'


const app = createRoot(document.getElementById('root'))
app.render(
  <React.StrictMode>
    <Provider store={store}>
      <App></App>
    </Provider>
  </React.StrictMode>
)

// store.subscribe(() => {
//   app.render(<ReduxIndex />)
// }) // 每次 state 更新就会执行 让视图刷新
